<?php include_once("header.html")?>

<div id="wrap">  <br />
<?php include_once("home_left.html")?>
    <div class="admincontent">
<?php include_once("home_assignmenttop.html")?>

	<br />
    <br />
    <?php if($is_view){
    	?>

		    <p><?php echo lang("grade_info")?>：</p>
			<table width="100%" border="0" cellpadding="0" cellspacing="1" class="missionReport" class="clear">
			<?php if($mark_type == 10){?>
          <tr>
            <td class="title"><?php echo lang("level_0")?></td>
            <td class="title"><?php echo lang("level_8")?></td>
            <td class="title"><?php echo lang("level_1")?></td>
            <td class="title"><?php echo lang("level_3")?></td>
            <td class="title"><?php echo lang("level_4")?></td>
            <td class="title"><?php echo lang("level_5")?></td>
            <td class="title"><?php echo lang("level_6")?></td>
            <td class="title"><?php echo lang("level_7")?></td>
          </tr>
          <tr>
            <td align="center">n/a</td>
            <td align="center">0</td>
            <td align="center">1-2</td>
            <td align="center">3-4</td>
            <td align="center">5</td>
            <td align="center">6-7</td>
            <td align="center">8-9</td>
            <td align="center">10</td>
          </tr>
          <?php }else if($mark_type == 5){?>
          <tr>
            <td class="title"><?php echo lang("level_0")?></td>
            <td class="title"><?php echo lang("level_8")?></td>
            <td class="title"><?php echo lang("level_1")?></td>
            <td class="title"><?php echo lang("level_3")?></td>
            <td class="title"><?php echo lang("level_4")?></td>
            <td class="title"><?php echo lang("level_5")?></td>
            <td class="title"><?php echo lang("level_7")?></td>
          </tr>
          <tr>
            <td align="center">n/a</td>
            <td align="center">0</td>
            <td align="center">1</td>
            <td align="center">2</td>
            <td align="center">3</td>
            <td align="center">4</td>
            <td align="center">5</td>
          </tr>
          <?php }else if($mark_type == 4){?>
          <tr>
           <td class="title"><?php echo lang("level_0")?></td>
            <td class="title"><?php echo lang("level_8")?></td>
            <td class="title"><?php echo lang("level_1")?></td>
            <td class="title"><?php echo lang("level_4")?></td>
            <td class="title"><?php echo lang("level_5")?></td>
            <td class="title"><?php echo lang("level_7")?></td>
          </tr>
          <tr>
            <td align="center">n/a</td>
            <td align="center">0</td>
            <td align="center">1</td>
            <td align="center">2</td>
            <td align="center">3</td>
            <td align="center">4</td>
          </tr>
          <?php }else if($mark_type == 2){?>
          <tr>
           <td class="title"><?php echo lang("level_0")?></td>
            <td class="title"><?php echo lang("level_8")?></td>
            <td class="title"><?php echo lang("level_1")?></td>
            <td class="title"><?php echo lang("level_7")?></td>
          </tr>
          <tr>
          
            <td align="center">n/a</td>
            <td align="center">0</td>
            <td align="center">1</td>
            <td align="center">2</td>
          <?php }?>
          </table>

       <?php

		foreach ($report_questions as $k=>$v){?>
		<table width="100%" border="0" cellpadding="0" cellspacing="1" class="missionReport" style="margin-top:10px;">
          <tr>
            <td  colspan="3" class="title"><?php echo lang($k);?></td>
          </tr>

          <?php
          //问题序号
		  $question_num = 0;

			foreach ($v as $kk=>$vv){
				if($vv['rq_type'] != 5) $question_num++;
				if($vv['rq_type']==2 || $vv['rq_type']==4 || $vv['rq_type']==1){
				?>
          <tr>
			 <td width="5%"><?php echo $GLOBALS['gGroupsCap'][$k]. "".($question_num)?></td>
            <td width="85%"><?php echo splitx($vv['rq_question']);?></td>
            <td  width="10%" align="center"></td>
          </tr>
       		 <?php
				}else if($vv['rq_type']==3){
			
					if($vv['rq_group']==5){
					?>
			<tr>
			 <td width="5%" valign="top"><?php echo $GLOBALS['gGroupsCap'][$k]. "".($question_num)?></td>
			  <td width="65%"><?php echo splitx($vv['rq_question']);?></td>
              <td  width="30%" align="center"></td>
          	</tr>
          <?php }else{?>
			<tr>
			 <td width="5%" valign="top"><?php echo $GLOBALS['gGroupsCap'][$k]. "".($question_num)?></td>
             <td width="95%" colspan="2" style="padding:0">

		            <table width="100%" border="0" cellpadding="0" cellspacing="0">
			            <tr>
			            	<td width="50%" style="background-color:#ccc;"> <?php echo splitx($vv['rq_question']);?></td>

			          	</tr>
			           <tr>
				           <td style="height:50px">

				           </td>
			            </tr>
		             </table>
            </td>
          </tr>
	   <?php }

				}else if($vv['rq_type']==5){
				?>
					<tr>
             			<td width="100%" colspan="3" style="padding:0">

		           			 <table width="100%" border="0" cellpadding="0" cellspacing="0">
			         		   <tr>
			            		<td width="50%" style="background-color:#ccc;"> <?php echo splitx($vv['rq_question']);?></td>
			          			</tr>

		             		</table>
            			</td>
          			</tr>
				<?php }

			}
			?>
        </table>
 		<?php }?>

				<?php
	}else{?>
   <p>&nbsp;</p>
   <p>&nbsp;</p>
   <p>&nbsp;</p>
<div align="center"><?php echo lang("apply_first")?></div>

  <?php }?>
  </div>
</div>

<?php include_once("footer.html")?>
